public class Example2_1 {
public static void main(String args[]){
char chinaword='好',japanWord='ぁ';
char you ='\u4F60';
int position = 20320;
System.out.println("汉字:"+chinaword+"的位置:"+(int)chinaword);
System.out.println("日文:"+japanWord+"的位置:"+(int)japanWord);
System.out.println(position+"位置上的字符是:"+(char)position);
position=21319;
System.out.println(position+"位置上的字符是:"+(char)position);
System.out.println("you:"+you);
}
}
